package com.util;

import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.*;

public class WriteJSONUtil {

    public static Map<String, Object> writeJSON(Object o) {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("res", o);
        return map;
    }

//
//    List<Map<String, Object>> couponlist = (List<Map<String, Object>>) _page.getResult();
//    JSONArray json = JSONArray.fromObject(couponlist);
//    JSONObject o = new JSONObject();
//			o.put("couponlist", couponlist); //优惠券列表

//    {
//        "resultCode": 0,
//            "resultMessage": "成功",
//            "data": {}
//    }
}
